<template>
	<!-- loading 加载 -->
	<view class="mix-loading-content" v-if="isShow">
		<view class="mix-loading-wrapper">
			<view>
				<image class="mix-loading-icon" :src="img"></image>
			</view>
			<view>
				<text style="font-size: 0.8rem; color: #a5a5a5;">
					加载中...
				</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {

		props: {
		},
		data() {
			return {
				isShow: true,
				img: ""
			};
		},

		methods: {
			hideAnimation() {
				this.isShow = false;
			}
		}
	}
</script>

<style>
	.mix-loading-content {
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		left: 0;
		top: 50rpx;
		width: 100%;
		height: 300rpx;
		background-color: transparent;
	}

	.mix-loading-wrapper {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		animation: loading .5s ease-in infinite both alternate;
	}

	.mix-loading-icon {
		width: 80rpx;
		height: 80rpx;
		transition: .3s;
	}

	@keyframes loading {
		0% {
			transform: translateY(-20rpx) scaleX(1);
		}

		100% {
			transform: translateY(4rpx) scaleX(1.3);
		}
	}
</style>